﻿<div id="text_attr">
    <table cellpadding="0" cellspacing="1" border="0" width="100%" class="formtable">
        <tr>
            <th style="width:80px;">绑定字段：</th>
            <td>
                <select class="myselect2" id="bindfiled" style="width:290px"></select>
            </td>
        </tr>
        <tr>
            <th>默认值：</th>
            <td>
                <div style="margin-bottom: 6px;"><select class="myselect" id="defaultvalueselect" onchange="parent.insertElementText(document.getElementById('defaultvalue'), this.value);" style="width:290px"></select></div>
                <div><textarea class="mytextarea" id="defaultvalue" style="width:98%; height:80px; margin-right:6px;"></textarea></div>
            </td>
        </tr>
        <tr>
            <th>宽度：</th>
            <td>
                <input type="text" id="width" class="mytext" style="width:150px" />
                &nbsp;&nbsp;对齐方式：<select class="myselect" id="align" style="width:100px;"><option value="left">左对齐</option><option value="center">居中</option><option value="right">右对齐</option></select>
            </td>
        </tr>
        <tr>
            <th>最大字符数：</th>
            <td>
                <input type="text" id="maxlength" class="mytext" style="width:150px" />
                &nbsp;&nbsp;背景文字：<input type="text" id="placeholdertext" class="mytext" style="width:240px" />
            </td>
        </tr>
        <tr>
            <th>输入类型：</th>
            <td>
                <input type="radio" value="text" id="inputtype_0" name="inputtype" style="vertical-align:middle" /><label style="vertical-align:middle;margin-right:2px;" for="inputtype_0">明文</label>
                <input type="radio" value="password" id="inputtype_1" name="inputtype" style="vertical-align:middle" /><label style="vertical-align:middle;margin-right:2px;" for="inputtype_1">密码</label>
            </td>
        </tr>
        <tr>
            <th>值类型：</th>
            <td>
                <select class="myselect" id="valuetype"></select>
                &nbsp;&nbsp;格式：<input type="text" class="mytext" id="format" />
            </td>
        </tr>
    </table>
</div>
<script type="text/javascript">
    $(function ()
    {

    });
    function initSelect2()
    {
        new RoadUI.Select().init2($("#bindfiled"));
    }
</script>